package com.ourteam.product.model.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:01:11
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class ProductModelBaseDAOQueryBean extends BaseQueryBean {
    public ProductModelBaseDAOQueryBean() {
        super();
    }

    public ProductModelBaseDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public ProductModelBaseDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.Id, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.Id, "id");
        }
    }

    public void addModelBaseNameSelectProperty() {
        addModelBaseNameSelectProperty("modelBaseName");
    }

    public void addModelBaseNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.ModelBaseName, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.ModelBaseName,
                "modelBaseName");
        }
    }

    public void addModelBaseTypeSelectProperty() {
        addModelBaseTypeSelectProperty("modelBaseType");
    }

    public void addModelBaseTypeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.ModelBaseType, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.ModelBaseType,
                "modelBaseType");
        }
    }

    public void addCreatorNameSelectProperty() {
        addCreatorNameSelectProperty("creatorName");
    }

    public void addCreatorNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.CreatorName, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.CreatorName, "creatorName");
        }
    }

    public void addCreateTimeSelectProperty() {
        addCreateTimeSelectProperty("createTime");
    }

    public void addCreateTimeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.CreateTime, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.CreateTime, "createTime");
        }
    }

    public void addLastModifierNameSelectProperty() {
        addLastModifierNameSelectProperty("lastModifierName");
    }

    public void addLastModifierNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.LastModifierName, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.LastModifierName,
                "lastModifierName");
        }
    }

    public void addLastModifyTimeSelectProperty() {
        addLastModifyTimeSelectProperty("lastModifyTime");
    }

    public void addLastModifyTimeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.LastModifyTime, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.LastModifyTime,
                "lastModifyTime");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.Status, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.Status, "status");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.Remarks, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.Remarks, "remarks");
        }
    }

    public void addOwnerIdSelectProperty() {
        addOwnerIdSelectProperty("ownerId");
    }

    public void addOwnerIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(IProductModelBaseDAO.OwnerId, aAlias);
        } else {
            addSelectProperty(IProductModelBaseDAO.OwnerId, "ownerId");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addModelBaseNameSelectProperty();

        addModelBaseTypeSelectProperty();

        addCreatorNameSelectProperty();

        addCreateTimeSelectProperty();

        addLastModifierNameSelectProperty();

        addLastModifyTimeSelectProperty();

        addStatusSelectProperty();

        addRemarksSelectProperty();

        addOwnerIdSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<ProductModelBaseDAOQueryBean> {
        protected Criteria(ProductModelBaseDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(IProductModelBaseDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(IProductModelBaseDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.Id + " is not null AND " +
                IProductModelBaseDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.Id + " is null OR " +
                IProductModelBaseDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " is null OR " +
                IProductModelBaseDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Id + " not in", values, "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Id + " not in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(IProductModelBaseDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelBaseDAO.Id + " between", value1, value2,
                "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(IProductModelBaseDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelBaseDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andModelBaseNameIsNull() {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " is null");

            return this;
        }

        public Criteria andModelBaseNameIsNotNull() {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " is not null");

            return this;
        }

        public Criteria andModelBaseNameIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.ModelBaseName +
                " is not null AND " + IProductModelBaseDAO.ModelBaseName +
                " <> ''");

            return this;
        }

        public Criteria andModelBaseNameIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.ModelBaseName +
                " is null OR " + IProductModelBaseDAO.ModelBaseName + " = '')");

            return this;
        }

        public Criteria andModelBaseNameEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " = ", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " <>", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " is null OR " +
                IProductModelBaseDAO.ModelBaseName + " <>", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " >", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " >=", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameLessThan(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " <", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " <=", value,
                "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.ModelBaseName + " like",
                buffer.toString(), "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.ModelBaseName + " not like",
                buffer.toString(), "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameIn(List<String> values) {
            if (values.size() == 1) {
                return andModelBaseNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseName + " in",
                    values, "modelBaseName");

                return this;
            }
        }

        public Criteria andModelBaseNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andModelBaseNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseName + " not in",
                    values, "modelBaseName");

                return this;
            }
        }

        public Criteria andModelBaseNameIn(String[] values) {
            if (values.length == 1) {
                return andModelBaseNameEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseName + " in",
                    Arrays.asList(values), "modelBaseName");

                return this;
            }
        }

        public Criteria andModelBaseNameNotIn(String[] values) {
            if (values.length == 1) {
                return andModelBaseNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseName + " not in",
                    Arrays.asList(values), "modelBaseName");

                return this;
            }
        }

        public Criteria andModelBaseNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseNameBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " between",
                value1, value2, "modelBaseName");

            return this;
        }

        public Criteria andModelBaseNameNotBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.ModelBaseName + " not between",
                value1, value2, "modelBaseName");

            return this;
        }

        public Criteria andModelBaseTypeIsNull() {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " is null");

            return this;
        }

        public Criteria andModelBaseTypeIsNotNull() {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " is not null");

            return this;
        }

        public Criteria andModelBaseTypeIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.ModelBaseType +
                " is not null AND " + IProductModelBaseDAO.ModelBaseType +
                " <> ''");

            return this;
        }

        public Criteria andModelBaseTypeIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.ModelBaseType +
                " is null OR " + IProductModelBaseDAO.ModelBaseType + " = '')");

            return this;
        }

        public Criteria andModelBaseTypeEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " = ", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " <>", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " is null OR " +
                IProductModelBaseDAO.ModelBaseType + " <>", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " >", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " >=", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeLessThan(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " <", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " <=", value,
                "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.ModelBaseType);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andModelBaseTypeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.ModelBaseType + " like",
                buffer.toString(), "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.ModelBaseType + " not like",
                buffer.toString(), "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeIn(List<String> values) {
            if (values.size() == 1) {
                return andModelBaseTypeEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseType + " in",
                    values, "modelBaseType");

                return this;
            }
        }

        public Criteria andModelBaseTypeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andModelBaseTypeNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseType + " not in",
                    values, "modelBaseType");

                return this;
            }
        }

        public Criteria andModelBaseTypeIn(String[] values) {
            if (values.length == 1) {
                return andModelBaseTypeEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseType + " in",
                    Arrays.asList(values), "modelBaseType");

                return this;
            }
        }

        public Criteria andModelBaseTypeNotIn(String[] values) {
            if (values.length == 1) {
                return andModelBaseTypeNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.ModelBaseType + " not in",
                    Arrays.asList(values), "modelBaseType");

                return this;
            }
        }

        public Criteria andModelBaseTypeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andModelBaseTypeBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " between",
                value1, value2, "modelBaseType");

            return this;
        }

        public Criteria andModelBaseTypeNotBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.ModelBaseType + " not between",
                value1, value2, "modelBaseType");

            return this;
        }

        public Criteria andCreatorNameIsNull() {
            addCriterion(IProductModelBaseDAO.CreatorName + " is null");

            return this;
        }

        public Criteria andCreatorNameIsNotNull() {
            addCriterion(IProductModelBaseDAO.CreatorName + " is not null");

            return this;
        }

        public Criteria andCreatorNameIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.CreatorName +
                " is not null AND " + IProductModelBaseDAO.CreatorName +
                " <> ''");

            return this;
        }

        public Criteria andCreatorNameIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.CreatorName +
                " is null OR " + IProductModelBaseDAO.CreatorName + " = '')");

            return this;
        }

        public Criteria andCreatorNameEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " = ", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " <>", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " is null OR " +
                IProductModelBaseDAO.CreatorName + " <>", value, "creatorName");

            return this;
        }

        public Criteria andCreatorNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " >", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " >=", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameLessThan(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " <", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.CreatorName + " <=", value,
                "creatorName");

            return this;
        }

        public Criteria andCreatorNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreatorName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreatorNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.CreatorName + " like",
                buffer.toString(), "creatorName");

            return this;
        }

        public Criteria andCreatorNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.CreatorName + " not like",
                buffer.toString(), "creatorName");

            return this;
        }

        public Criteria andCreatorNameIn(List<String> values) {
            if (values.size() == 1) {
                return andCreatorNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.CreatorName + " in", values,
                    "creatorName");

                return this;
            }
        }

        public Criteria andCreatorNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andCreatorNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.CreatorName + " not in",
                    values, "creatorName");

                return this;
            }
        }

        public Criteria andCreatorNameIn(String[] values) {
            if (values.length == 1) {
                return andCreatorNameEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.CreatorName + " in",
                    Arrays.asList(values), "creatorName");

                return this;
            }
        }

        public Criteria andCreatorNameNotIn(String[] values) {
            if (values.length == 1) {
                return andCreatorNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.CreatorName + " not in",
                    Arrays.asList(values), "creatorName");

                return this;
            }
        }

        public Criteria andCreatorNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreatorName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreatorNameBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.CreatorName + " between", value1,
                value2, "creatorName");

            return this;
        }

        public Criteria andCreatorNameNotBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.CreatorName + " not between",
                value1, value2, "creatorName");

            return this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion(IProductModelBaseDAO.CreateTime + " is null");

            return this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion(IProductModelBaseDAO.CreateTime + " is not null");

            return this;
        }

        public Criteria andCreateTimeIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.CreateTime + " is not null AND " +
                IProductModelBaseDAO.CreateTime + " <> ''");

            return this;
        }

        public Criteria andCreateTimeIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.CreateTime +
                " is null OR " + IProductModelBaseDAO.CreateTime + " = '')");

            return this;
        }

        public Criteria andCreateTimeEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " = ",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andCreateTimeNotEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " <>",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeNotEqualToOrIsNull(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                " is null OR " + IProductModelBaseDAO.CreateTime + " <>",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreateTimeGreaterThan(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " >",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " >=",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreateTimeLessThan(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " <",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime + " <=",
                value, "createTime");

            return this;
        }

        public Criteria andCreateTimeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.CreateTime);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreateTimeIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andCreateTimeEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                    " in", values, "createTime");

                return this;
            }
        }

        public Criteria andCreateTimeNotIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andCreateTimeNotEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                    " not in", values, "createTime");

                return this;
            }
        }

        public Criteria andCreateTimeIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andCreateTimeEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                    " in", Arrays.asList(values), "createTime");

                return this;
            }
        }

        public Criteria andCreateTimeNotIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andCreateTimeNotEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                    " not in", Arrays.asList(values), "createTime");

                return this;
            }
        }

        public Criteria andCreateTimeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreateTimeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.CreateTime + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andCreateTimeBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                " between", value1, value2, "createTime");

            return this;
        }

        public Criteria andCreateTimeNotBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(IProductModelBaseDAO.CreateTime +
                " not between", value1, value2, "createTime");

            return this;
        }

        public Criteria andLastModifierNameIsNull() {
            addCriterion(IProductModelBaseDAO.LastModifierName + " is null");

            return this;
        }

        public Criteria andLastModifierNameIsNotNull() {
            addCriterion(IProductModelBaseDAO.LastModifierName +
                " is not null");

            return this;
        }

        public Criteria andLastModifierNameIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.LastModifierName +
                " is not null AND " + IProductModelBaseDAO.LastModifierName +
                " <> ''");

            return this;
        }

        public Criteria andLastModifierNameIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.LastModifierName +
                " is null OR " + IProductModelBaseDAO.LastModifierName +
                " = '')");

            return this;
        }

        public Criteria andLastModifierNameEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " = ", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " <>", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName +
                " is null OR " + IProductModelBaseDAO.LastModifierName + " <>",
                value, "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " >", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " >=", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameLessThan(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " <", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameLessThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " <=", value,
                "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifierName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifierNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.LastModifierName + " like",
                buffer.toString(), "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.LastModifierName + " not like",
                buffer.toString(), "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameIn(List<String> values) {
            if (values.size() == 1) {
                return andLastModifierNameEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.LastModifierName + " in",
                    values, "lastModifierName");

                return this;
            }
        }

        public Criteria andLastModifierNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andLastModifierNameNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.LastModifierName + " not in",
                    values, "lastModifierName");

                return this;
            }
        }

        public Criteria andLastModifierNameIn(String[] values) {
            if (values.length == 1) {
                return andLastModifierNameEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.LastModifierName + " in",
                    Arrays.asList(values), "lastModifierName");

                return this;
            }
        }

        public Criteria andLastModifierNameNotIn(String[] values) {
            if (values.length == 1) {
                return andLastModifierNameNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.LastModifierName + " not in",
                    Arrays.asList(values), "lastModifierName");

                return this;
            }
        }

        public Criteria andLastModifierNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifierNameBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.LastModifierName + " between",
                value1, value2, "lastModifierName");

            return this;
        }

        public Criteria andLastModifierNameNotBetween(String value1,
            String value2) {
            addCriterion(IProductModelBaseDAO.LastModifierName +
                " not between", value1, value2, "lastModifierName");

            return this;
        }

        public Criteria andLastModifyTimeIsNull() {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " is null");

            return this;
        }

        public Criteria andLastModifyTimeIsNotNull() {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " is not null");

            return this;
        }

        public Criteria andLastModifyTimeIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.LastModifyTime +
                " is not null AND " + IProductModelBaseDAO.LastModifyTime +
                " <> ''");

            return this;
        }

        public Criteria andLastModifyTimeIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.LastModifyTime +
                " is null OR " + IProductModelBaseDAO.LastModifyTime +
                " = '')");

            return this;
        }

        public Criteria andLastModifyTimeEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " = ", value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeNotEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " <>", value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeNotEqualToOrIsNull(
            java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " is null OR " + IProductModelBaseDAO.LastModifyTime + " <>",
                value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeNotEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeNotEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeGreaterThan(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime + " >",
                value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeGreaterThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeGreaterThan(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeGreaterThanOrEqualTo(
            java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " >=", value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeLessThan(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime + " <",
                value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeLessThanForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeLessThanOrEqualTo(java.util.Date value) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " <=", value, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.LastModifyTime);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andLastModifyTimeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andLastModifyTimeEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                    " in", values, "lastModifyTime");

                return this;
            }
        }

        public Criteria andLastModifyTimeNotIn(List<java.util.Date> values) {
            if (values.size() == 1) {
                return andLastModifyTimeNotEqualTo(values.get(0));
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                    " not in", values, "lastModifyTime");

                return this;
            }
        }

        public Criteria andLastModifyTimeIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andLastModifyTimeEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                    " in", Arrays.asList(values), "lastModifyTime");

                return this;
            }
        }

        public Criteria andLastModifyTimeNotIn(java.util.Date[] values) {
            if (values.length == 1) {
                return andLastModifyTimeNotEqualTo(values[0]);
            } else {
                addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                    " not in", Arrays.asList(values), "lastModifyTime");

                return this;
            }
        }

        public Criteria andLastModifyTimeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.LastModifyTime + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andLastModifyTimeBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " between", value1, value2, "lastModifyTime");

            return this;
        }

        public Criteria andLastModifyTimeNotBetween(java.util.Date value1,
            java.util.Date value2) {
            addCriterionForJDBCDate(IProductModelBaseDAO.LastModifyTime +
                " not between", value1, value2, "lastModifyTime");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(IProductModelBaseDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(IProductModelBaseDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.Status + " is not null AND " +
                IProductModelBaseDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.Status + " is null OR " +
                IProductModelBaseDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.Status + " is null OR " +
                IProductModelBaseDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(IProductModelBaseDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Status + " not in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Status + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.Status + " not between", value1,
                value2, "status");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(IProductModelBaseDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(IProductModelBaseDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.Remarks + " is not null AND " +
                IProductModelBaseDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.Remarks + " is null OR " +
                IProductModelBaseDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " = ", value, "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " is null OR " +
                IProductModelBaseDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " >", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " >=", value, "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " <", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(IProductModelBaseDAO.Remarks + " <=", value, "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(IProductModelBaseDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.Remarks + " not in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(IProductModelBaseDAO.Remarks + " not between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andOwnerIdIsNull() {
            addCriterion(IProductModelBaseDAO.OwnerId + " is null");

            return this;
        }

        public Criteria andOwnerIdIsNotNull() {
            addCriterion(IProductModelBaseDAO.OwnerId + " is not null");

            return this;
        }

        public Criteria andOwnerIdIsNotEmpty() {
            addCriterion(IProductModelBaseDAO.OwnerId + " is not null AND " +
                IProductModelBaseDAO.OwnerId + " <> ''");

            return this;
        }

        public Criteria andOwnerIdIsEmpty() {
            addCriterion("(" + IProductModelBaseDAO.OwnerId + " is null OR " +
                IProductModelBaseDAO.OwnerId + " = '')");

            return this;
        }

        public Criteria andOwnerIdEqualTo(long value) {
            return andOwnerIdEqualTo(Long.valueOf(value));
        }

        public Criteria andOwnerIdEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " = ", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andOwnerIdNotEqualTo(long value) {
            return andOwnerIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andOwnerIdNotEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " <>", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdNotEqualToOrIsNull(long value) {
            return andOwnerIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andOwnerIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " is null OR " +
                IProductModelBaseDAO.OwnerId + " <>", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andOwnerIdGreaterThan(long value) {
            return andOwnerIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andOwnerIdGreaterThan(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " >", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andOwnerIdGreaterThanOrEqualTo(long value) {
            return andOwnerIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andOwnerIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " >=", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andOwnerIdLessThan(long value) {
            return andOwnerIdLessThan(Long.valueOf(value));
        }

        public Criteria andOwnerIdLessThan(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " <", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andOwnerIdLessThanOrEqualTo(long value) {
            return andOwnerIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andOwnerIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(IProductModelBaseDAO.OwnerId + " <=", value, "ownerId");

            return this;
        }

        public Criteria andOwnerIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(IProductModelBaseDAO.OwnerId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andOwnerIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andOwnerIdIn(long[] values) {
            if (values.length == 1) {
                return andOwnerIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " in", values,
                    "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdNotIn(long[] values) {
            if (values.length == 1) {
                return andOwnerIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " not in", values,
                    "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andOwnerIdEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " in", values,
                    "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andOwnerIdNotEqualTo(values.get(0));
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " not in", values,
                    "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andOwnerIdEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " in",
                    Arrays.asList(values), "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andOwnerIdNotEqualTo(values[0]);
            } else {
                addCriterion(IProductModelBaseDAO.OwnerId + " not in",
                    Arrays.asList(values), "ownerId");

                return this;
            }
        }

        public Criteria andOwnerIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andOwnerIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(IProductModelBaseDAO.OwnerId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andOwnerIdBetween(long value1, long value2) {
            addCriterion(IProductModelBaseDAO.OwnerId + " between", value1,
                value2, "ownerId");

            return this;
        }

        public Criteria andOwnerIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelBaseDAO.OwnerId + " between", value1,
                value2, "ownerId");

            return this;
        }

        public Criteria andOwnerIdNotBetween(long value1, long value2) {
            addCriterion(IProductModelBaseDAO.OwnerId + " not between", value1,
                value2, "ownerId");

            return this;
        }

        public Criteria andOwnerIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(IProductModelBaseDAO.OwnerId + " not between", value1,
                value2, "ownerId");

            return this;
        }
    }
}
